import request from '@/utils/request'

// 查询压力传感器数据列表
export function listPressureSensor(query) {
  return request({
    url: '/system/pressureSensor/list',
    method: 'get',
    params: query
  })
}

// 查询压力传感器数据详细
export function getPressureSensor(id) {
  return request({
    url: '/system/pressureSensor/' + id,
    method: 'get'
  })
}

// 新增压力传感器数据
export function addPressureSensor(data) {
  return request({
    url: '/system/pressureSensor',
    method: 'post',
    data: data
  })
}

// 修改压力传感器数据
export function updatePressureSensor(data) {
  return request({
    url: '/system/pressureSensor',
    method: 'put',
    data: data
  })
}

// 删除压力传感器数据
export function delPressureSensor(id) {
  return request({
    url: '/system/pressureSensor/' + id,
    method: 'delete'
  })
}
